import OrderApi from "@/api/OrderApi"

const state = {
    currentOrders: []
}

const mutations = {

}

const actions = {
    getCurrentOrders({state}){
        OrderApi.getBought().then(res=>{
            state.currentOrders = res.data
        })
    }
}

export default{
    namespaced:true,
    state,
    mutations,
    actions
}